<%@page import="com.beinfo.contract.model.Contract"%>
<%@page import="com.beinfo.contract.dao.ContractDao"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="dbconn.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>合同管理系统</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="css/pikaday.css" rel="stylesheet" type="text/css" />
</head>

<body>

	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">首页</a></li>
    <li>合同详情</li>
    </ul>
    </div>

    <div class="formbody">
    
    <div class="formtitle"><span>合同详细信息</span></div>
    <%
    int con_id=Integer.valueOf(request.getParameter("con_id"));
    ContractDao dao=new ContractDao();
    Contract t1=dao.getidbycnoid(con_id);
		
    %>
    <form action="approve.jsp" method="post">  		
    <ul class="forminfo">
    <li><label>合同编号</label><input name="con_id" type="text" class="dfinput"  value="<%=t1.getCon_id()%>"  readonly/>
    </li>
    <li><label>合同名称</label><input name="con_name" type="text" class="dfinput"  value="<%=t1.getCon_name()%> "readonly/>
    </li>
    <li>
      <label>签订日期</label>
      <input name="" type="text" class="dfinput"  value="<%=t1.getSigin_date()%>" readonly/></li>
    <li>
      <label>截止日期</label>
      <input name="" type="text" class="dfinput"  value="<%=t1.getClosing_date()%>" readonly/></li>
      <li>
    	<label>合同金额</label><input name="" type="text" class="dfinput"  value="<%=t1.getCon_amount()%>"readonly/>
    </li>
    <li>
    	<label>已支付金额</label><input name="" type="text" class="dfinput"  value="<%=t1.getCon_pay()%>"readonly/>
    </li>
    <li>
    	<label>未支付金额</label><input name="" type="text" class="dfinput"  value="<%=t1.getCon_nonpay()%>"readonly/>
    </li>
    <li><label>合同状态</label>
    	<input name="con_state" type="text" class="dfinput"  value="<%=t1.getCon_state()%>"/>
    </li>
    <li>
    	<label>草拟人</label><input name="" type="text" class="dfinput"  value="<%=t1.getCon_drafter() %>"readonly/>
    </li>
    <li>
    	<label>审批人</label><input name="" type="text" class="dfinput"  value="<%=t1.getCon_approver() %>"readonly/>
    </li>
    <li><label>&nbsp;</label><input name="" type="button" class="btn" value="返回" onclick="window.location='conlist.jsp'"/>
    <input name="Submit" type="submit" class="btn" value="提交修改" onclick="window.location='conlist.jsp'"/>
    </li>
    
    </ul>
    </form>
    
    </div>

</body>

</html>
